import java.util.HashMap;

public class ComplaintsContainer {

	private static ComplaintsContainer cc;
	private static HashMap<String, String> complaintsList = new HashMap<String, String>();

	private ComplaintsContainer () {
	}

	public synchronized static ComplaintsContainer getInstance() {
		if (cc == null)
		{
			cc = new ComplaintsContainer();
		}
		return cc;
	}

	public HashMap<String, String> getComplaintsList() {
		return complaintsList;
	}

	public void setComplaintsList(HashMap<String, String> cl) {
		complaintsList = cl;
	}

	public void addComplaint(String missingmaterial, String partnercontact) {
		complaintsList.put(missingmaterial, partnercontact);
	}
}
